<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<form action="" method="post">
    标题: <input type="text" name="tits" value="{{ cont.tits }}"><br>
    简介: <input type="text" name="content" value="{{ cont.content }}"><br>
    时间: <input type="date" name="time" value="{{ cont.time|date:'Y-m-d'}}"><br>
    状态：{% if cont.zt ==  1%}
    <input type="radio" name="zt" value="1" checked="checked">通过<input type="radio" name="zt" value="0">未通过
{% else %}
    <input type="radio" name="zt" value="1">通过<input type="radio" name="zt" value="0" checked="checked">未通过
{% endif %}
    上传者：<select name="name" id="">
    {% for f in user %}
        {% if cont.name.id == f.id %}
            <option value="{{ f.id }}" selected>{{ f.username }}</option>
        {% else %}
            <option value="{{ f.id }}">{{ f.username }}</option>
        {% endif %}

    {% endfor %}

</select>
    <button>修改</button>
</form>

</body>
</html>